import request from '@/utils/request'

// 查询订单数据
export function getOrderList(query) {
  return request({
    url: '/hotel/order/getOrderList',
    method: 'get',
    params: query
  })
}

// 处理订单
export function orderHandlePost(data) {
    return request({
      url: '/hotel/order/orderHandlePost',
      method: 'post',
      data: data
    })
}

// 修改订单状态
export function updateOrderStatusPost(data) {
    return request({
      url: '/hotel/order/updateOrderStatusPost',
      method: 'post',
      data: data
    })
}

// 定时任务去找待办订单数据,用于全局提醒
export function getOrderByNoRemind() {
  return request({
    url: '/hotel/order/getOrderByNoRemind',
    method: 'get',
  })
}

// 修改发单状态
export function postCopyAndSend(data) {
  return request({
    url: '/hotel/order/postCopyAndSend',
    method: 'post',
    data: data
  })
}

// 修改订单采购价
export function postUpdateOrderPrice(data) {
  return request({
    url: '/hotel/order/postUpdateOrderPrice',
    method: 'post',
    data: data
  })
}